<ul class="nav nav-pills">
  {% for item in menu_items %}
    <li class="nav-item">
      <a {% if item.0 == menu_page %}class="nav-link active"{% else %}class="nav-link"{% endif %}
         href="{% url item.1 %}">{{ item.2 }}</a>
    </li>
  {% endfor %}
</ul>
